import request from '@/utils/request'

// 查询采购列表
export function listProcure(query) {
  return request({
    url: '/warehousemanager/procure/list',
    method: 'get',
    params: query
  })
}
export function listProcureByQuery(timeRange){
  return request({
    url: '/warehousemanager/procure/listByQuery',
    method: 'get',
    params: timeRange
  })
}

// 删除采购信息
export function delProcure(procureId) {
  return request({
    url: '/warehousemanager/procure/' + procureId,
    method: 'delete'
  })
}

//新增采购信息
export function addProcure(data) {
  return request({
    url: '/warehousemanager/procure',
    method: 'post',
    data: data
  })
}



